<template>
  <div>
      <el-container>
        <el-aside width="200px">
          <el-menu
            :collapse="false"
            :default-active="$route.path"
            class="el-menu-vertical-demo"
            background-color="#545c64"
            text-color="#fff"
            active-text-color="#ffd04b"    
            router
          >
          <el-menu-item-group>
            <el-menu-item index="/Son1">
              <i class="el-icon-menu"></i>
              <span slot="title">导航一</span>
            </el-menu-item>
           
            <el-menu-item index="/Son2">
             <i class="el-icon-menu"></i>
              <span slot="title">导航二</span>
            </el-menu-item>
               <el-menu-item index="/Son3">
              <i class="el-icon-menu"></i>
              <span slot="title">导航三</span>
            </el-menu-item>
            </el-menu-item-group>
          </el-menu>
        </el-aside>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
   
  </div>
</template>
           
<script>
export default {
  name: '',
  data() {
    return {}
  },
  created() {},
  computed: {},
  methods: {},
}
</script>
<style lang='less'  scoped>
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 160px;
}

body > .el-container {
  margin-bottom: 40px;
}



.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>